package com.sky.service;

import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;
import java.time.LocalDateTime;

public interface ReportService {

    /*
     * 根据时间区间统计营业额
     */
    TurnoverReportVO getTurnover(LocalDate begin, LocalDate end);

    /*
     * 用户数据统计
     */
    UserReportVO getUserStatistics(LocalDate begin, LocalDate end);
    /*
     * 订单数据统计
     */
    OrderReportVO getOrderStatistics(LocalDate begin, LocalDate end);

    Integer getOrderCount(LocalDateTime beginTime, LocalDateTime endTime, Integer status);

    SalesTop10ReportVO getSalesTop10(LocalDate begin, LocalDate end);
    /*
     * 导出运营数据报表
     */
    void exportBusinessData(HttpServletResponse response);
}
